package com.example.gyj.redis;

/**
 *
 * @author Gao
 * @date 2018/10/21
 */
public class SeckillKey extends BasePrefix {

    private SeckillKey(int ecpireSeconds, String prefix) {
        super(ecpireSeconds, prefix);
    }

    /**
     * 无限期
     */
    public static SeckillKey isGoodsOver = new SeckillKey(0, "go");

    /**
     * 有效期60s
     */
    public static SeckillKey getSeckillPath = new SeckillKey(60, "sp");

    /**
     * 有效期5分钟
     */
    public static SeckillKey getSeckillVerifyCode = new SeckillKey(300, "vc");
}
